package cn.com.taurus.biz;

import cn.com.taurus.bean.ClientAccounts;
import cn.com.taurus.entity.Client;
import cn.com.taurus.impl.ClientImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClientBiz {
    @Autowired
    ClientImpl clientImpl;

    public int clientRegister(Client client) {
        return clientImpl.clientRegister(client);
    }

    public Client login(Client client) {
        return clientImpl.login(client);
    }

    public int insertClient(ClientAccounts client) {
        return clientImpl.insertClient(client);
    }

    public Client selectClientById(Integer cid) {
        return clientImpl.selectClientById(cid);
    }

    public int updateClientById(ClientAccounts client) {
        return clientImpl.updateClientById(client);
    }

    public int deleteClientById(ClientAccounts clientAccounts) {
        return clientImpl.deleteClientById(clientAccounts);
    }

    public List<ClientAccounts> selectAllClientAccount() {
        return clientImpl.selectAllClientAccount();
    }

    public Integer selectCIdBycAccount(String cAccount) {
        return clientImpl.selectCIdBycAccount(cAccount);
    }

    public List<ClientAccounts> findClientAccount(ClientAccounts clientAccounts) {
        return clientImpl.findClientAccount(clientAccounts);
    }

    public List<Client> selectOne() {
        return clientImpl.selectOne();
    }
}
